package com.muyu.remote;

import com.muyu.common.core.constant.ServiceNameConstants;
import com.muyu.common.core.domain.Result;
import com.muyu.remote.factory.RemoteVipPersonFactory;


import com.muyu.system.domain.DanmoVipPerson;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Vip人员远程调用 RemoteVipPerson
 *
 * @author LeYang
 * on 2025/6/10
 */
@FeignClient(
        contextId = "RemoteVipPersonFactory",
        value = ServiceNameConstants.VIP_SERVICE,
        fallbackFactory = RemoteVipPersonFactory.class,
        path = "/person"
)
public interface RemoteVipPerson {

    @PostMapping("/person")
    public DanmoVipPerson person(@RequestBody DanmoVipPerson danmoVipPerson);
    @PostMapping("/add")
    public Result add(@RequestBody DanmoVipPerson danmoVipPerson);

    @PostMapping("/edit")
    public Result edit(@RequestBody DanmoVipPerson danmoVipPerson);
}
